﻿<MVVMBase:WindowExtenBase xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:forms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms" xmlns:ViewBase="clr-namespace:EzDesk.DesktopClient.ViewBase;assembly=EzDesk.DesktopClient.MVVMEnhance" xmlns:MVVMBase="clr-namespace:EzDesk.MVVMBase;assembly=EzDesk.MVVMBase" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="EzDesk.DesktopClient.FunctionWindowModule.View.ActionView"                 
        AllowsTransparency="True"
        WindowStyle="None" 
        Background="Transparent"
        WindowStartupLocation="Manual"
        Title="NotificationView" Height="100"  Width="288" x:Name="Window">
    <MVVMBase:WindowExtenBase.Resources>
        <Storyboard x:Key="FlashShow">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Window">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:3.7" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:4" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="PopShow">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Window">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </MVVMBase:WindowExtenBase.Resources>
	<Border  x:Name="LayoutRoot"  BorderBrush="{DynamicResource BackOrange}" BorderThickness="1" CornerRadius="2" Background="{DynamicResource BackOrange}">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <DockPanel HorizontalAlignment="Stretch" Grid.Row="0" Margin="5,3" LastChildFill="False">
                <TextBlock Foreground="White" FontWeight="Bold" Text="{Binding IsSuccess}"></TextBlock>
                <Button x:Name="CloseBtn" DockPanel.Dock="Right" Margin="1" Style="{StaticResource CloseButtonStyle}" Click="CloseBtn_Click" VerticalAlignment="Top"  Width="16" Height="16"/>
            </DockPanel>
            <Border Grid.Row="1" Background="Wheat">
            	<TextBlock  FontWeight="Bold" TextWrapping="Wrap"  Foreground="{DynamicResource FontGreen}" Grid.Row="1"  Text="{Binding ResultInformation}" Margin="5,19.533,5,20.866" HorizontalAlignment="Center" d:LayoutOverrides="Height"></TextBlock>
            </Border>
        </Grid>
    </Border>
</MVVMBase:WindowExtenBase>

